package org.example.Service;

import org.example.Dao.UserDao;
import org.example.Dao.UserDaoImpl;
import org.example.Pojo.User;

public class UserServiceImpl implements UserService{
    UserDao userDao= new UserDaoImpl();
    @Override
    public void UserLog(User user) {
        if (userDao.login(user)){
            System.out.println("登陆成功");

        }else{
            System.out.println("登陆失败");

        }
    }
}
